import { reactive } from 'vue'
import type { FormRules } from 'element-plus'
const rules = reactive<FormRules>({
  name: [
    {
      required: true,
      message: '请输入账号',
      trigger: 'blur'
    },
    {
      min: 2,
      max: 16,
      message: '账号长度在2-16之间',
      trigger: 'blur'
    }
  ],
  password: [
    {
      required: true,
      message: '请输入密码',
      trigger: 'blur'
    },
    { min: 3, max: 16, message: '请输入长度在3-16位之间', trigger: 'blur' }
  ],
  num: [
    {
      required: true,
      message: '请输入手机号',
      trigger: 'blur'
    }
  ],
  code: [
    {
      required: true,
      message: '请输入验证码',
      trigger: 'blur'
    }
  ]
})

export { rules }
